]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Add some spacing between date and indicator
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 17 Jan 2020 16:41:49 +0000 (17:41 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 22 Jan 2020 21:55:28 +0000 (21:55 +0000)
While the existing dot doesn't necessarily need padding, we are about
to (sometimes) showing a "proper" icon there.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/239

data/theme/gnome-shell-sass/widgets/_calendar.scss
js/ui/dateMenu.js

index 2e2495c5fb9d70802726ca8e601f33a5852cd668..e1bb0e5697f9acd9a6073bb687ab3745bc7cad58 100644 (file)
@@ -1,5 +1,7 @@
 /* Date/Time Menu */
 
+.clock-display-box { spacing: $base_spacing; }
+
 // overall menu
 #calendarArea {
   padding:0;
     font-feature-settings: "tnum";
     @include fontsize($base_font_size - 1);
   }
-}
\ No newline at end of file
+}
index 690d30f4bca4feeb84f67e656af45feee5c55d10..9bdd2c4d10a3cf3dca02497b6415cfe78426a8ab 100644 (file)
@@ -557,7 +557,7 @@ class DateMenuButton extends PanelMenu.Button {
         this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
         this._indicator = new MessagesIndicator();
 
-        let box = new St.BoxLayout();
+        let box = new St.BoxLayout({ style_class: 'clock-display-box' });
         box.add_actor(new IndicatorPad(this._indicator));
         box.add_actor(this._clockDisplay);
         box.add_actor(this._indicator);